package com.study.java.jinjie.jihe.lianxi.one;

import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.List;

public class Test {

    public static void main(String[] args){

        List<Student> studentList = new ArrayList<>();
        studentList.add(new Student(100001, "张三", (short)86));
        studentList.add(new Student(100002, "张四b", (short)56));
        studentList.add(new Student(100003, "张五", (short)66));
        studentList.add(new Student(100004, "张六", (short)76));

        //System.out.println(studentList);

       Score score = new Score(studentList);
//       score.printStudent();
       //score.printStudent3();

       // System.out.println("平均: "+score.pingJun());
        //System.out.println("成绩最高的学生姓名:"+score.zuiGao());


       /* float f = 653.1268876f;
        System.out.println(f);*/

       /* String title = String.format("%.1f", f);
        System.out.println(title);


        String title2 = String.format("%04d", 20);
        System.out.println(title2);

        String title3= String.format("%5s", "张三");
        System.out.println(title3);*/

        // %f  浮点数, %d 整数, %s 字符串

    }

}
